<optgroup id='openTicketGroup' label="{translate}Today ticket{/translate}">
    {if !empty($openTicketList)}
        {foreach from=$openTicketList item=ticket}
        <option value="{$ticket.ticket_id}" label="{$ticket.ticket_name}" {if $ticket.ticket_id==$ticketId} selected="selected"{/if}>{$ticket.ticket_name}</option>
        {/foreach}                       
    {else}
        <option value='0' selected='selected'>{translate}Not yet{/translate}!</option>
    {/if}
</optgroup>
<optgroup id='closedTicketGroup' label="{translate}Old ticket{/translate}">
    {if !empty($closedTicketList)}
        {foreach from=$closedTicketList item=ticket}
        <option value="{$ticket.ticket_id}" label="{$ticket.ticket_name}" {if $ticket.ticket_id==$ticketId} selected="selected"{/if}>{$ticket.ticket_name}</option>
        {/foreach}                       
    {else}
        <option value='0'>{translate}Not yet{/translate}!</option>
    {/if}
</optgroup>
